package com.book.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 轮播图
 * </p>
 *
 * @author auto
 * @since 2025-04-03 10:33:27
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("banner")
@Schema(name= "Banner对象", description = "轮播图")
public class Banner {

    @Schema(name ="主键")
    @TableId(value = "banner_id", type = IdType.ASSIGN_UUID)
    private String bannerId;

    @Schema(name ="轮播图图片url")
    @TableField("banner_url")
    private String bannerUrl;

    @Schema(name ="重定向url")
    @TableField("redirect_url")
    private String redirectUrl;

    @Schema(name = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @Schema(name = "修改时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @Schema(name ="是否启用（0否1是）")
    @TableField("enable")
    private Integer enable;

}
